﻿
@model IEnumerable<CoreDemo.Model.Movie>
@{
    ViewData["Title"] = ViewBag.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div class="container">
    <div class="row">
        <table class="table table-bordered table-hover table-primary">
            <thead class="thead-dark">
                <tr>
                    <th>Id</th>
                    <th>Name</th>
                    <th>Starring</th>
                    <th>ReleaseDate</th>
                    <th>操作</th>
                </tr>
            </thead>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Id</td>
                    <td>@item.Name</td>
                    <td>@item.Starring</td>
                    <td>@item.ReleaseDate</td>
                    <td>
                        <a asp-controller="Movie" asp-action="Edit" asp-route-cinemaId="@item.Id"></a>
                    </td>
                </tr>
            }
        </table>
        <a class="btn btn-primary" asp-action="Add" asp-route-cinemaId="@ViewBag.cinemaId">添加</a>
    </div>
</div>
